/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBLayer;
import ModelLayer.*;
import java.util.ArrayList;

/**
 *
 * @author Gruppe 4
 */
public interface IFDBSalesOrder {
    
    //get one SalesOrder having the specified supplier id
    public SalesOrder findSalesOrder(int orderId, boolean retriveAssociation);
    // get all SalesOrder
    public ArrayList<SalesOrder> getAllSalesOrders(boolean retriveAssociation);
    //insert a new SalesOrder
    public int insertSalesOrder(SalesOrder salesOrder);
    //update information about a SalesOrder
    public int updateSalesOrder(SalesOrder salesOrder);
    public void calcTotalAmounts(SalesOrder salesOrder);
    public int getMaxId();
        
}

